<?php
class AppController extends Controller {
	public $components = array(
		'Session',
		'Auth' => array(
			'loginRedirect' => array('controller' => 'articles', 'action' => 'index'),
			'logoutRedirect' => array('/'),
			'authorize' => array('Controller')
  )
	);

	public function isAuthorized($user) {
		return true;
	}

	function beforeFilter() {
		$this->Security->blackHoleCallback = 'blackhole';
	}

	function blackhole($type) {
		throw new MethodNotAllowedException(__('Nope'));
	}

}